package si.cir.gui;

import si.cir.R;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.View;
import android.widget.EditText;

public class AipsActivity extends TemplateActivity{

	@Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.predmet);
    }

    @Override
    public boolean onPrepareOptionsMenu(Menu menu) {
    	super.onPrepareOptionsMenu(menu);
    	menu.findItem(R.id.home).setVisible(true);
    	menu.findItem(R.id.stuk).setVisible(true);
    	menu.findItem(R.id.soum).setVisible(true);
    	menu.findItem(R.id.vreme).setVisible(true);
    	return true;
    }
    
	public void odpriPredmet(View v) {
		EditText sprem = (EditText) findViewById(R.id.predmet);
		Intent intent = new Intent(this, AipsMidActivity.class);
		intent.putExtra("predmet", sprem.getText().toString());
		startActivity(intent);
    }
}
